package com.kern.academic.service;

import com.kern.academic.bean.ResponseResult;
import com.kern.academic.bean.enumer.RemoveOperEnum;
import com.kern.academic.entity.XUser;
import com.kern.academic.vo.UserVO;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

/**
 * Created by caoshi at 9:21 2021-06-26
 */
public interface IUserService {

    /**
     * @param username
     * @param password
     * @return
     */
    XUser getByUsernameAndPwd(String username, String password);


    /**
     * 条件分页查询
     * @param Search
     * @param pageNum
     * @param pageSize
     * @return
     */
    ResponseResult listBySearchPage(String Search, int pageNum, int pageSize);

    /**
     * 获取用户总数量
     * @return
     */
    long getTotal();

    XUser update(XUser user);

    XUser save(XUser user);

    /**
     * 通过id查询
     * @return
     */
    XUser getById(String id);

    RemoveOperEnum removeById(String id);

}
